<template>
  <div>
    <img :src="src" alt="" />
    <p>这是一个孤独的狗</p>
  </div>
</template>

<script>
export default {
  data() {
    return {
      src: 'https://scpic.chinaz.net/files/pic/pic9/202003/zzpic23514.jpg',
    }
  },
}
</script>

<style>
div {
  float: left;
  /* display: flex; */
  /* flex-direction: column; */
  /* align-items: center; */
}
div img {
  width: 100%;
  height: 200px;
  border: 1px black solid;
}
</style>
